<?php

/**
 * This file is part of the Pagizer package.
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * @copyright   Copyright (c) 2010 Advisa (http://www.advisa.fr)
 * @author      Pagizer Core Team <team@pagizer.org>
 * @package     Pagizer
 * @subpackage  backoffice
 */

class m_backoffice_actions_DisplayAction extends f_core_Action
{
	public function execute()
	{
		$model['user'] = $this->getUser();
		$this->setModel($model['user']);
		$this->setView('success');
	}	
	
	public function validate()
	{
		return $this->getUserContext()->hasRight("backoffice_accessBo");
	}
	
	public function errorHandler()
	{
		$this->launchAction("backoffice", "login");
	}
}